<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class TeamReward extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'team_rewards';

    public function user()
    {
        return $this->belongsTo(User::class, 'p_user_id');
    }

    public function child()
    {
        return $this->belongsTo(User::class, 'c_user_id');
    }
}
